{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            {include file="public/tophead" /}
            <form class="form-horizontal" method="post">
                <div class="tabs-container">
                    <ul class="nav nav-tabs">
                        <li class="active">
                            <a data-toggle="tab" href="#tab-1" aria-expanded="false">提现配置</a>
                        </li>
                        <li >
                            <a data-toggle="tab" href="#tab-2" aria-expanded="false">客服</a>
                        </li>
                        <li >
                            <a data-toggle="tab" href="#tab-3" aria-expanded="false">推广</a>
                        </li>
                        <li >
                            <a data-toggle="tab" href="#tab-4" aria-expanded="false">app设置</a>
                        </li>
                        {php}
                        $platform = sysConfig('platform');
                        {/php}
                    </ul>
                    <div class="tab-content">

                        <div id="tab-1" class="tab-pane active">
                            <div class="ibox-content">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">金币兑人民币比例：
                                        {if $development_display}<br><span style="color: red;">platform[withdrawal_rate]</span>{/if}</label>
                                    <div class="col-sm-9">
                                        <input type="text" name="platform[withdrawal_rate]" value="{present name="$platform['withdrawal_rate']"}{$platform['withdrawal_rate']}{/present}"
                                        required="required" class="form-control" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">提现手续费（%）：
                                        {if $development_display}<br><span style="color: red;">platform[withdrawal_fee_rate]</span>{/if}</label>
                                    <div class="col-sm-9">
                                        <input type="text" name="platform[withdrawal_fee_rate]" value="{present name="$platform['withdrawal_fee_rate']"}{$platform['withdrawal_fee_rate']}{/present}"
                                        required="required" class="form-control" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">提现最小金额：
                                        {if $development_display}<br><span style="color: red;">platform[withdrawal_min_amount]</span>{/if}</label>
                                    <div class="col-sm-9">
                                        <input type="text" name="platform[withdrawal_min_amount]" value="{present name="$platform['withdrawal_min_amount']"}{$platform['withdrawal_min_amount']}{/present}"
                                        required="required" class="form-control" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">提现最大金额：
                                        {if $development_display}<br><span style="color: red;">platform[withdrawal_max_amount]</span>{/if}</label>
                                    <div class="col-sm-9">
                                        <input type="text" name="platform[withdrawal_max_amount]" value="{present name="$platform['withdrawal_max_amount']"}{$platform['withdrawal_max_amount']}{/present}"
                                        required="required" class="form-control" />
                                    </div>
                                </div>


                                <div class="form-group">
                                    <label class="col-sm-2 control-label">几天没人举报转可提现：
                                        {if $development_display}<br><span style="color: red;">platform[turn_available_days]</span>{/if}</label>
                                    <div class="col-sm-9">
                                        <input type="text" name="platform[turn_available_days]" value="{present name="$platform['turn_available_days']"}{$platform['turn_available_days']}{/present}"
                                        required="required" class="form-control" />
                                    </div>
                                </div>


                            </div>
                        </div>

                        <div id="tab-2" class="tab-pane ">
                            <div class="ibox-content">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">客服微信：
                                        {if $development_display}<br><span style="color: red;">platform[customer_service_wechat]</span>{/if}</label>
                                    <div class="col-sm-9">
                                        <input type="text" name="platform[customer_service_wechat]" value="{present name="$platform['customer_service_wechat']"}{$platform['customer_service_wechat']}{/present}"
                                        required="required" class="form-control" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">客服ID：
                                        {if $development_display}<br><span style="color: red;">platform[customer_service_member_id]</span>{/if}</label>
                                    <div class="col-sm-9">
                                        <input type="text" name="platform[customer_service_member_id]" value="{present name="$platform['customer_service_member_id']"}{$platform['customer_service_member_id']}{/present}"
                                        required="required" class="form-control" />
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div id="tab-3" class="tab-pane ">
                            <div class="ibox-content">

                                {foreach $sexs as $key=>$val}
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">{$val}推广描述：
                                        {if $development_display}<br><span style="color: red;">platform[promotion_description][性别id即{$key}]</span>{/if}</label>
                                    <div class="col-sm-9">
                                        <textarea style="resize:none;" class="form-control" name="platform[promotion_description][{$key}]" rows="8">{present name="$platform['promotion_description']"}{$platform['promotion_description'][$key]}{/present}</textarea>
                                    </div>
                                </div>
                                {/foreach}


                            </div>
                        </div>


                        <div id="tab-4" class="tab-pane ">
                            <div class="ibox-content">

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">苹果版本号：
                                        {if $development_display}<br><span style="color: red;">platform[apple_version]</span>{/if}</label>
                                    <div class="col-sm-9">
                                        <input type="text" name="platform[apple_version]" value="{present name="$platform['apple_version']"}{$platform['apple_version']}{/present}"
                                        required="required" class="form-control" />
                                    </div>
                                </div>


                                <div class="form-group">
                                    <label class="col-sm-2 control-label">苹果下载链接：
                                        {if $development_display}<br><span style="color: red;">platform[apple_download]</span>{/if}</label>
                                    <div class="col-sm-9">
                                        <input type="text" name="platform[apple_download]" value="{present name="$platform['apple_download']"}{$platform['apple_download']}{/present}"
                                        required="required" class="form-control" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">安卓版本号：
                                        {if $development_display}<br><span style="color: red;">platform[android_version]</span>{/if}</label>
                                    <div class="col-sm-9">
                                        <input type="text" name="platform[android_version]" value="{present name="$platform['android_version']"}{$platform['android_version']}{/present}"
                                        required="required" class="form-control" />
                                    </div>
                                </div>


                                <div class="form-group">
                                    <label class="col-sm-2 control-label">安卓下载链接：
                                        {if $development_display}<br><span style="color: red;">platform[android_download]</span>{/if}</label>
                                    <div class="col-sm-9">
                                        <input type="text" name="platform[android_download]" value="{present name="$platform['android_download']"}{$platform['android_download']}{/present}"
                                        required="required" class="form-control" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{include file="public/footer" /}
{load href="__STYLE__/admin/plugins/iCheck/icheck.min.js"}
{load href="__STYLE__/admin/plugins/iCheck/custom.css"}
<script type="text/javascript">
    $(document).ready(function () {
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        });
    });
    $("#upload").click(function () {
        layer.open({
            type: 2,
            title: '上传图片',
            shadeClose: true,
            shade: 0.2,
            area: ['70%', '60%'],
            skin: 'shangchuantup',
            content: "{:url('index/upload', ['type' => 'admin'])}",
            shift: -1,
            scrollbar: false,
            moveType: 1,
            moveOut: true
        });
    });
</script>
{include file="public/bottom" /}